package com.spdzen.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.spdzen.model.SysResource;
import com.spdzen.support.SimpleMapper;
import com.spdzen.vo.SysResourceAdminVO;
import com.spdzen.vo.search.SysResourceAdminSearch;

/**
 * Mapper接口
 */
public interface SysResourceMapper extends SimpleMapper<SysResource> {
	SysResourceAdminVO selectOneAdminVO(Long id);
	List<SysResourceAdminVO> selectAdminVO(SysResourceAdminSearch search);
	List<SysResource> selectChildrenByUser(@Param("sysUserId") Long sysUserId, @Param("parentId") Long parentId);
	
	List<SysResource> selectChildren(@Param("parentId") Long parentId);
}